package com.ywjt.platformbusiness.my.model;

import java.io.Serializable;
import java.util.List;

public class AddressModel implements Serializable {


    /**
     * success : true
     * message : 操作成功！
     * code : 200
     * result : [{"id":"1407259123692867585","createBy":null,"createTime":"2021-06-22 16:48:15","updateBy":null,"updateTime":null,"userId":"1406871099469496322","name":"哗哗哗","phone":"15839433596","address":"福建省 福州市 仓山区","detailAddress":"嚯哈哈哈哈哈斤斤计较","postalCode":"123456","isDefault":0}]
     * timestamp : 1624351867841
     */

    private Boolean success;
    private String message;
    private Integer code;
    private Long timestamp;
    private List<ResultDTO> result;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public List<ResultDTO> getResult() {
        return result;
    }

    public void setResult(List<ResultDTO> result) {
        this.result = result;
    }

    public static class ResultDTO implements Serializable{
        /**
         * id : 1407259123692867585
         * createBy : null
         * createTime : 2021-06-22 16:48:15
         * updateBy : null
         * updateTime : null
         * userId : 1406871099469496322
         * name : 哗哗哗
         * phone : 15839433596
         * address : 福建省 福州市 仓山区
         * detailAddress : 嚯哈哈哈哈哈斤斤计较
         * postalCode : 123456
         * isDefault : 0
         */

        private String id;
        private Object createBy;
        private String createTime;
        private Object updateBy;
        private Object updateTime;
        private String userId;
        private String name;
        private String phone;
        private String address;
        private String detailAddress;
        private String postalCode;
        private Integer isDefault;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public Object getCreateBy() {
            return createBy;
        }

        public void setCreateBy(Object createBy) {
            this.createBy = createBy;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public Object getUpdateBy() {
            return updateBy;
        }

        public void setUpdateBy(Object updateBy) {
            this.updateBy = updateBy;
        }

        public Object getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(Object updateTime) {
            this.updateTime = updateTime;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getDetailAddress() {
            return detailAddress;
        }

        public void setDetailAddress(String detailAddress) {
            this.detailAddress = detailAddress;
        }

        public String getPostalCode() {
            return postalCode;
        }

        public void setPostalCode(String postalCode) {
            this.postalCode = postalCode;
        }

        public Integer getIsDefault() {
            return isDefault;
        }

        public void setIsDefault(Integer isDefault) {
            this.isDefault = isDefault;
        }
    }
}
